Nice tip, that's exactly was I'm looking for, but didn't know  indexOf on array exists. Thx.