$page->hasListedChildren()
Checks if the page has any listed children
$page->hasListedChildren(): bool
Return type
bool
This method modifies the existing $page
object it is applied to and returns it again.
Parent class
Examples
echo $page->hasListedChildren(); // will echo 1 if true, nothing if false
if ($page->hasListedChildren()) {
$children = $page->children()->listed();
}