$site->hasChildren() Checks if the model has any published children kirby/src/Cms/HasChildren.php#L131 $site->hasChildren(): bool Return type bool Parent class Kirby\Cms\Site Example <?php if($site->hasChildren()): ?> There are children in /content. <?php endif ?>