public function checkLocaleInSupportedLocales($locale)
    {
        $locales = $this->getSupportedLocales();
        if ($locale !== false && empty($locales[$locale])) {
            return false;
        }

        return true;
    }
public function checkLocaleInSupportedLocales($locale)
    {
        $locales = $this->getSupportedLocales();
        if ($locale !== false && empty($locales[$locale])) {
            return false;
        }

        return true;
    }
public function checkLocaleInSupportedLocales ( $ locale ) { $ locales = $ this -> getSupportedLocales ( ) ; if ( $ locale !== false && empty ( $ locales [ $ locale ] ) ) { return false ; } return true ; }
Check if Locale exists on the supported locales array.

@param string|bool $locale string|bool Locale to be checked

@throws SupportedLocalesNotDefined

@return bool is the locale supported?
Check if Locale exists on the supported locales array .