public function hasAccess(array $url, array $user): bool
    {
        $result = parent::hasAccess($url, $user);
        if (!$result) {
            return $result;
        }

        if (!empty($user['is_superuser']) && $user['is_superuser']) {
            return true;
        }

        return false;
    }
public function hasAccess(array $url, array $user): bool
    {
        $result = parent::hasAccess($url, $user);
        if (!$result) {
            return $result;
        }

        if (!empty($user['is_superuser']) && $user['is_superuser']) {
            return true;
        }

        return false;
    }
public function hasAccess ( array $ url , array $ user ) : bool { $ result = parent :: hasAccess ( $ url , $ user ) ; if ( ! $ result ) { return $ result ; } if ( ! empty ( $ user [ 'is_superuser' ] ) && $ user [ 'is_superuser' ] ) { return true ; } return false ; }
hasAccess for super user

@param mixed[] $url    URL user tries to access for
@param mixed[] $user   user's session data
@return bool true in case of superuser and false if not
hasAccess for super user