Make myMap work on empty lists

Which is cleaner and the correct thing to do.