$site->hasImages() Checks if the Files collection has any images kirby/src/Cms/HasFiles.php#L166 $site->hasImages(): bool Return type bool Parent class Kirby\Cms\Site Example <?php if($site->hasImages()): ?> The /content folder contains images. <?php endif ?>