// jQuery inArray if ($.inArray(false, Arr) > -1) { // found } else { // not found } // http://stackoverflow.com/questions/15015043/jquery-inarray-doesnt-work-when-the-first-element-matches