Each if/then will include code to generate a new array of different lengths