# Missing $page-\>hasActiveChildren()

**URL:** <https://forum.getkirby.com/t/missing-page-hasactivechildren/24202>\
**Category:** Questions\
**Tags:** v3\
**Created:** [December 9, 2021, 4:14pm UTC](https://forum.getkirby.com/t/missing-page-hasactivechildren/24202 "2021-12-09T16:14:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Microman](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/microman/32/15876_2.png) [@Microman](https://forum.getkirby.com/u/Microman)\
**Post date:** [December 9, 2021, 4:14pm UTC](https://forum.getkirby.com/t/missing-page-hasactivechildren/24202/1 "2021-12-09T16:14:34Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Microman](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/microman/32/15876_2.png) [@Microman](https://forum.getkirby.com/u/Microman)\
**Post date:** [December 9, 2021, 4:22pm UTC](https://forum.getkirby.com/t/missing-page-hasactivechildren/24202/2 "2021-12-09T16:22:16Z")

</div>

I mean something more elegant than that:

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

```

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [December 9, 2021, 4:44pm UTC](https://forum.getkirby.com/t/missing-page-hasactivechildren/24202/3 "2021-12-09T16:44:12Z")

</div>

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

> **[Page methods](https://getkirby.com/docs/reference/plugins/extensions/page-methods)**
