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