Check if phone number is null before evaluating input