Was crashing with three inputs (last one is for innovations) when the first input was an empty array.