private function isHomepage() { if (array_key_exists('auto_landing', $this->params['html']) && !$this->params['html']['auto_landing']) { return false; } if ($this->file->getParent()->getIndexPage() != $this->file) { return false; } if ($this->params->isMultilanguage()) { return $this->file->getParent()->getParent() instanceof Root; } return $this->file->getParent() instanceof Root; }