The inArray declaration was accidentally duplicated.