$.inArray returns -1 like indexOf does

Using $.inArray return value as boolean produces incorrect results.
Fixed.