/**
  * Is the user a guest?
  *
  * @param int $userId id of user (default is current user)
  * @return array GalleryStatus a status code
  *               boolean true if anonymous
  */
 function isAnonymousUser($userId = null)
 {
     if (empty($userId)) {
         global $gallery;
         $userId = $gallery->getActiveUserId();
     }
     list($ret, $anonymousId) = MyOOS_CoreApi::getAnonymousUserId();
     if ($ret) {
         return array($ret, null);
     }
     return array(null, $userId == $anonymousId);
 }