Reference

$page->hasNextUnlisted()

Checks if there's a next unlisted page in the siblings collection

$page->hasNextUnlisted(): bool

Return type

bool

Example

echo $page->hasNextUnlisted();

Using sort field

echo $page->hasNextUnlisted('date', 'desc');

Source code

kirby/src/Cms/PageSiblings.php#L43