I added a comment yesterday that seems to have been swallowed. The point in initializing the map was so that you didn't have to do this if-else. You can just do the else now.