I would really recommend a new system, you could do something like
HTML Code:
public function onCheckArray(arr) {
for (temp.i: getstringkeys("this.")) {
if ((@ this.(@ temp.i)) == (@ temp.arr)) return true;
if (temp.arr.size() == this.(@ temp.i).size()) {
temp.check = 0;
for (temp.f: temp.arr) {
if (temp.f in this.(@ temp.i)) temp.check++;
}
if (temp.check == temp.arr.size()) return true;
}
}
return false;
}