removed redundant $.inArray