Hacks needed for old Ruby versions.
Flat map @param [Enumerable] enum an enumerable object @block the block to flat-map with @return The enum, flat-mapped
[Validate]