I think we should check if the return from map is `undefined` in order to remove the element from the mapping, I say that because maybe you want `false` or `null` as values while I never saw nobody using `undefined` as a value. what you think?