I think better than this would be to call node_access with the $space->group if it is there.

ex.
```
$anon_user = drupal_anonymous_user();
node_access('view', $space->group, $anon_user);
```