$site->hasChildren()

Checks if there are any children placed directly in /content

  • return (boolean)

Example

<?php if($site->hasChildren()): ?>
There are children in /content.
<?php endif ?>