protected function hasGroupLoop($accessLevel, $modifiedUuid)
    {
        $parts = explode('\\', $accessLevel);
        
        if (count($parts) < 3 || $parts[1] !== 'Group') {
            return false;
        }
        
        if ($parts[2] === $modifiedUuid) {
            return true;
        }
        
        if ($this->hasPermissionForModifiedGroup($modifiedUuid, $parts[2])) {
            return true;
        }
        
        return false;
    }