Make myMap work on empty lists

It is cleaner and the correct thing to do.