IE6-8 require if-loop rather than array#indexOf() or iteration methods