Optionally pass an array and sum up the numbers.