compare avail_vector to NULL (xlc may not like it compares with 0)