public function category() { if ($this->forum_parents) { return array_values($this->forum_parents)[0][0]; } else { return $this->forum_name; } }