private function isLocaleSupportedOrFail($locale) { if (!$this->isLocaleSupported($locale)) { throw new UnsupportedLocaleException("Locale '{$locale}' is not in the list of supported locales."); } }