public function isFirstChildActive()
    {
        $url = array_get($this->attributes, 'link', '');
        if ($this->getActiveMenuRoute() == $url) {
            return true;
        }
        @list($domain, $area, $module, $action) = explode('/', str_replace('http://', '', $url));
        if ($this->url == $url) {
            return true;
        }
        $segments = $this->segments;
        if (!isset($segments[1])) {
            return false;
        }
        return ($segments[1] == $module && isset($segments[2]) && (in_array($segments[2], ['index', 'edit', 'mail']) or is_numeric($segments[2])));
    }