Reduce of empty array with no initial value