Performance.  Much faster to lookup in a map than to use indexOf