What the comment says. :P (I hope :angel: )

Guests can have only the "any" permissions and since all the permissions are "any" by default unless otherwise, this checks that the group is set and is not -1 to add the "own".
Yes, the if is a bit screwed, may be:
```
if (!isset($context['group']['id']) || $context['group']['id'] != -1)
```

```$any_group``` doesn't exist any more because it was true only for some permissions in the 'simple' view (see https://github.com/elkarte/Elkarte/pull/623/files#L1L622)