menu 8 Menu Overview $page->isHomeOrErrorPage() It's often required to check for the home and error page to stop certain actions. That's why there's a shortcut. $page->isHomeOrErrorPage(): bool Return type bool Source code kirby/src/Cms/Page.php#L731