# $productPage->hasFiles()

> Checks if the Files collection has any files

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

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

## Return type

`bool`

## Parent class

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