public static function isValidCountryCode($country)
    {
    	$iso3166 = new ISO3166;

    	try {
    		$iso3166->alpha2($country);

    		return true;
    	} catch (\Exception $e) {
    		return false;
    	}
    }
public static function isValidCountryCode($country)
    {
    	$iso3166 = new ISO3166;

    	try {
    		$iso3166->alpha2($country);

    		return true;
    	} catch (\Exception $e) {
    		return false;
    	}
    }
public static function isValidCountryCode ( $ country ) { $ iso3166 = new ISO3166 ; try { $ iso3166 -> alpha2 ( $ country ) ; return true ; } catch ( \ Exception $ e ) { return false ; } }
Determine whether the given country code is valid.

@param string $country
@return bool
Determine whether the given country code is valid .