self::
getAlpha2Code($alpha3Code);
return true;
} catch (MissingResourceException
) { return false;
} } public static function numericCodeExists(string
$numericCode): bool
{ try { self::
getAlpha2FromNumeric($numericCode);
return true;
} catch (MissingResourceException
$e) { return false;
} } /**
* Gets the country name from its alpha2 code.
*
* @throws MissingResourceException if the country code does not exist
*/