/**
  * Return whether there are wish list items to be retrieved (that haven't already been retrieved).
  * @return boolean
  */
 function CanRetrieveWishList()
 {
     if ($array = WishListDecorator_Controller::get_wish_list_from_member_array()) {
         if (is_array($array)) {
             if (count($array)) {
                 return true;
             }
         }
     }
     return false;
 }
 /**
  * Retrieve wishlist entries from session and return.
  * @return DataObjectSet | null
  */
 function WishList()
 {
     if (self::$data === null) {
         self::$data = false;
         $array = self::get_wish_list_from_member_array();
         if (is_array($array) && count($array)) {
             $stage = Versioned::current_stage();
             $objects = array();
             foreach ($array as $value) {
                 if ($object = DataObject::get_by_id($value[0], $value[1])) {
                     $objects[] = $object;
                 }
             }
             if (count($objects)) {
                 self::$data = new DataObjectSet($objects);
             }
         }
     }
     return self::$data;
 }