isPhoneNumber function