available check is used instead of empty list