public function isPrivate() { if (is_array($this->visibility)) { return in_array('private', $this->visibility); } return false; }