public function includeBeatmap(BeatmapPlaycount $playcount) { if ($playcount->beatmap === null) { return; } return $this->item($playcount->beatmap, new BeatmapTransformer()); }