public function routeHasLanguageCompositionPrefix($route, $language)
    {
        $parts = explode("/", $route);
        if (isset($parts[0]) && $parts[0] == $language) {
            return true;
        }
        
        return false;
    }
public function routeHasLanguageCompositionPrefix($route, $language)
    {
        $parts = explode("/", $route);
        if (isset($parts[0]) && $parts[0] == $language) {
            return true;
        }
        
        return false;
    }
public function routeHasLanguageCompositionPrefix ( $ route , $ language ) { $ parts = explode ( "/" , $ route ) ; if ( isset ( $ parts [ 0 ] ) && $ parts [ 0 ] == $ language ) { return true ; } return false ; }
Ensure whether a route starts with a language short key or not.

@param string $route The route to check `en/module/controller/action` or without `module/controller/action`
@param string $language The language to check whether it exists or not `en`.
@return boolean
Ensure whether a route starts with a language short key or not .