# $productPage->isHomeOrErrorPage()

> It's often required to check for the home and error page to stop certain actions. That's why there's a shortcut.

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

```php
$productPage->isHomeOrErrorPage(): bool
```

## Return type

`bool`

## Parent class

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