Smart! I would have used `$.inArray()` since I'm a jQuery slut. 

Leave the code as is but can you add a comment that explains what you just explained to me.