check if animal_type is nil or not