rewritten JMVC.array.inArray