private function isHandlingLanguage($code, $allLanguages)
    {
        if ($code == $this->baselanguage) {
            return false;
        }

        if ($allLanguages) {
            return true;
        }

        return in_array(substr($code, 0, 2), $this->languages);
    }