Appending zero to the array to cover for the case where an empty array is passed, returning a sum of zero instead of nil.  This was my workaround before seeing that there was a way to define a default value.