protected function getLanguage($singleLanguage, $metaModels)
    {
        if (!empty($singleLanguage)) {
            return array($singleLanguage);
        } elseif ($metaModels->isTranslated() && $metaModels->getAvailableLanguages()) {
            return $metaModels->getAvailableLanguages();
        }

        return array($GLOBALS['TL_LANGUAGE']);
    }