# $productPage->hasDocuments()

> Checks if the Files collection has any document files

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

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

## Return type

`bool`

## Parent class

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