With a `#map` instead of `#each`, you could do without instantiating an empty `resources` array.