$page->isUnlisted() Checks if the page has no sorting number kirby/src/Cms/Page.php#L809 $page->isUnlisted(): bool Return type bool Parent class Kirby\Cms\Page <?php if($page->isUnlisted()): ?> // redirect to error page <?php go('error') ?> <?php endif ?>