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

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

        return false;
    }
public function isAvailable ( ) : bool { foreach ( $ this -> items as $ item ) { if ( $ item -> isVisible ( ) ) { return true ; } } return false ; }
Must return true is section has at least one available item.

@return bool
Must return true is section has at least one available item .