inArray returns the index of the element in the array. If the element was not found, -1 will be returned else index of element.
if(jQuery.inArray("element", myarray) === -1) {
console.log("Not exists in array");
} else {
console.log("Exists in array");
}