[ $this->mergeWhen($this->petCategory !== null, function () { return ['category' => $this->petCategory->name]; }), ], ]; } }