@mjgiarlo that sounds like it would fail because you're testing for a string.  However, I don't see why doing the map would be a problem.