private function hidePagesIfHiddenInDefaultTranslation($pages)
    {
        $language = GeneralUtility::_GET('L');

        if ($language != 0) {
            return $pages;
        }

        foreach ($pages as $key => $page) {
            if ($page['l18n_cfg'] === 1) {
                unset($pages[$key]);
            }
        }

        return $pages;
    }