/**
  * Returns true if this object has assignees
  *
  * If $load_assignees is set to true assignees will be loaded instead of 
  * counted. Loaded assignees are cached so we save one database call when we 
  * want to display them if we have them preloaded this way
  * 
  * @param boolean $load_assignees
  * @return boolean
  */
 function hasAssignees($load_assignees = false)
 {
     if ($this->has_assignees === null) {
         if ($this->assignees === false) {
             if ($load_assignees) {
                 $this->has_assignees = (bool) count($this->getAssignees());
             } else {
                 $this->has_assignees = (bool) Assignments::countAssigneesByObject($this);
             }
             // if
         } else {
             $this->has_assignees = is_foreachable($this->assignees);
         }
         // if
     }
     // if
     return $this->has_assignees;
 }