Fix: use arrayReduce for es3 compat