protected function checkIfSitemapIndexingIsEnabled($indexingType)
    {
        // check if sitemap is enabled in root
        if (!GeneralUtility::getRootSettingValue('is_sitemap', true)
            || !GeneralUtility::getRootSettingValue('is_sitemap_' . $indexingType . '_indexer', true)
        ) {
            return false;
        }

        // check current page
        if (!$this->checkIfCurrentPageIsIndexable()) {
            return false;
        }

        return true;
    }