src/Sulu/Bundle/WebsiteBundle/Sitemap/XmlSitemapRenderer.php
private function needsIndex()
    {
        return 1 < count($this->sitemapProviderPool->getProviders())
        || 1 < array_reduce(
            $this->sitemapProviderPool->getIndex(),
            function($v1, Sitemap $v2) {
                return $v1 + $v2->getMaxPage();
            }
        );
    }
private function needsIndex()
    {
        return 1 < count($this->sitemapProviderPool->getProviders())
        || 1 < array_reduce(
            $this->sitemapProviderPool->getIndex(),
            function($v1, Sitemap $v2) {
                return $v1 + $v2->getMaxPage();
            }
        );
    }
private function needsIndex ( ) { return 1 < count ( $ this -> sitemapProviderPool -> getProviders ( ) ) || 1 < array_reduce ( $ this -> sitemapProviderPool -> getIndex ( ) , function ( $ v1 , Sitemap $ v2 ) { return $ v1 + $ v2 -> getMaxPage ( ) ; } ) ; }
Returns true if a index exists.

@return bool
Returns true if a index exists .