All you need is `$user_guid && ($group instanceof ElggGroup) && $group->canEdit()`