I am using inArray to determine if a value is in an array like so:
$.each($("input[type=checkbox]#type"), function (x, y) { if ($.inArray(o