fixed typo:
```php
if(in_array('guest', $groups) OR array_key_exists(1, $groups))
```
instead
```php
if(in_array('guest', $groups) OR in_array('1', $groups))
```