<?phpdeclare(strict_types=1);namespace WebBundle\Validator\Locale;use WebBundle\Helper\App;class CountryAvailableLocaleValidator implements LocaleValidatorInterface{ public static function valid(?string $value, bool $nullAndEmptyIsValid = false): bool { if (!$value) { return $nullAndEmptyIsValid; } return array_key_exists($value, App::getCountryList()); }}