public function includeClient(Task $task) { if ($task->client) { $transformer = new ClientTransformer($this->account, $this->serializer); return $this->includeItem($task->client, $transformer, 'client'); } else { return null; } }