public function normalize(NormalizerInterface $normalizer, $format = null, array $context = array()) { return array_map(function ($of) { return $of->getId(); }, array_filter($this->files, function ($of) { return !$of->isEmpty(); })); }