/** * Does this post exist? * * @param $postid * * @return bool */ public function PostExists($postid) { if (!$this->database->GetPost($postid)) { return false; } return true; }