I think the correct use is actually inArray() It doesnt seem to be fully documented although these posts may help understand it.
and