nested if statement when there is a phone number