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