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/
Merge pull request #1 from BryghtShadow/bug

Fixing conditional usage of jQuery.inArray()