public function parent() { if (!$this->post_parent) { return false; } return new $this->PostClass($this->post_parent); }