public function isActive(): bool
    {
        foreach ($this->items as $item) {
            if ($item->isActive()) {
                return true;
            }
        }

        return false;
    }
public function isActive(): bool
    {
        foreach ($this->items as $item) {
            if ($item->isActive()) {
                return true;
            }
        }

        return false;
    }
public function isActive ( ) : bool { foreach ( $ this -> items as $ item ) { if ( $ item -> isActive ( ) ) { return true ; } } return false ; }
Determine whether the menu is active.

@return bool
Determine whether the menu is active .