fix issue caused by incorrect logic in `_reduce` checking for a falsey accumulator rather than the accumulator being `undefined` when iterating an Array