Reference

$page->hasPrevListed()

Checks if there's a previous listed page in the siblings collection

$page->hasPrevListed(): bool

Return type

bool

Example

echo $page->hasPrevListed();

Using sort field

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

Source code

kirby/src/Cms/PageSiblings.php#L63