You can use `scaleArray[1]` as the result parameter here and in the `else` block.