Issue with is_avail method