# $ordersPage->hasPrev()

> Checks if there's a previous item in the collection

- Source: `src/Cms/HasSiblings.php#L31` <https://github.com/getkirby/kirby/blob/6.0.0-beta.1/src/Cms/HasSiblings.php#L31>
- Inherited from Kirby, not part of the Merx API. See <https://getkirby.com/docs/reference>.

```php
$ordersPage->hasPrev(TCollection|null $collection = null): bool
```

## Parameters

| Name | Type | Default |
| --- | --- | --- |
| `$collection` | `TCollection\|null` | `null` |

## Return type

`bool`

## Parent class

`Wagnerwagner\Merx\OrdersPage` inherited from `Kirby\Cms\Page`
