public function isActive()
    {

        if (!isset($this->attributes['link'])) {
            return false;
        }
        $childs = isset($this->attributes['childs']) ? $this->attributes['childs'] : [];
        if (empty($childs)) {
            return $this->compare($this->attributes['link']);
        }
        foreach ($childs as $child) {
            if (!isset($child->attributes['link'])) {
                continue;
            }
            if ($this->compare($child->attributes['link'])) {
                return true;
            }
        }
        return $this->compare($this->attributes['link']);
    }