Make myMap work on empty lists

Which is cleaner and the correct thing to do.
Merge pull request #74 from brunal/patch-1

Make myMap work on empty lists