hmm, this is kinda tricky. do we need to make this change? if so, maybe it's better to use an array of strings for matches and do an indexOf check. I could easily see one of us forgetting to make the key a string.