Wouldn't casting the arguments to array work here ? Like `$a = (array) $a` ?