code: function isValid(number, countryCode) {
      try {
          var phoneUtil = i18n.phonenumbers.PhoneNumberUtil.getInstance();
          var numberObj = phoneUtil.parseAndKeepRawInput(number, countryCode);
          return phoneUtil.isValidNumber(numberObj);
      } catch (e) {
          return false;
      }
  }
docs: check if given number is valid