Fixing conditional usage of jQuery.inArray()

"JavaScript treats 0 as loosely equal to false (i.e. 0 == false, but 0 !== false)" -- http://api.jquery.com/jquery.inarray/