`if (navigator.mozPhoneNumberService && navigator.mozPhoneNumberService.normalize)`

and please add a test with mozPhoneNumberService set to null