$site->hasChildren()
Checks if the model has any published children
$site->hasChildren(): bool
Return type
bool
This method modifies the existing $site
object it is applied to and returns it again.
Parent class
Examples
<?php if ($site->hasChildren()): ?>
There are children in /content.
<?php endif ?>