public function item($resourceKey, array $data) { if ($resourceKey) { return [$resourceKey => $data]; } return $data; }