[ $this->mergeWhen($this->recipient !== null, function () { return ['recipient' => $this->recipient->uuid]; }), $this->mergeWhen($this->photos->count() > 0, [ 'photos' => $this->photos->mapUuid(), ]), ], ]; } }