Changed emptyAccumulator name to accumulatorEmpty to represent boolean value better
Changed parameter names to better represent meaning