I usually just use array.size() to check if it's an array but type works too.
PHP Code:
function onCreated() {
// Values
temp.arr = {1, 2, 3};
temp.obj = new TStaticVar();
temp.str = "abc";
temp.val = 1;
// Type
echo(temp.arr.type()); // 3
echo(temp.obj.type()); // 2
echo(temp.str.type()); // 1
echo(temp.val.type()); // 0
}
lol, misread the question.. Why not use two different params[0] like getReplySingle (when you're sending just a string) and getReplyMultiple (when you're sending an array)?