public function isExpanded($currentUrl)
    {
        if (!$this->subnodes instanceof Collection) {
            return false;
        }

        return $this
            ->subnodes
            ->exists(function ($_, NodeInterface $node) use ($currentUrl) {

                return
                    $node->isActive($currentUrl) ||
                    $node->isExpanded($currentUrl);
            });
    }