Missing $page->hasActiveChildren()

Is there a workaround for that method? It should be self-explained…

I mean something more elegant than that:

$item->children()->filter( function ($a) {
  return $a->isActive();
} )->isNotEmpty())

You can create a custom page method if you need that method more often: