Needs an initial value when array is empty