Moving conditional statement. If the locale resolver was not able to determine a locale, then all efforts to make an informed decision have failed. Just display something as a last resort. Avoids a possible exception, if the requested language is an empty string - JMS\I18nRoutingBundle\Exception\NotAcceptableLanguageException: The requested language "" was not available.
Moving conditional statement. If the locale resolver was not able to determine a locale, then all efforts to make an informed decision have failed. Just display something as a last resort. Avoids a possible exception, if the requested language is an empty string - JMS\I18nRoutingBundle\Exception\NotAcceptableLanguageException: The requested language "" was not available.