this value is nullable, so `if (null !== $locale && !in_array($locale, Application::getAvailableLanguages())) {`