# $ordersPage->isLast()

> Checks if the item is the last in the collection

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

```php
$ordersPage->isLast(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`
