public function toArray() { if (!empty($this->route_expose)) { return $this->route_expose; } return $this->fields; }