/** * Returns true if this message has replies * * @param boolean $preload * @return boolean */ function hasReplies($preload = false) { if ($preload) { $this->getReplies(); return is_foreachable($this->replies); } else { return (bool) StatusUpdates::countByParent($this); } // if }