As per our discussion, I'm leaving this as is and we are now assuming we pass in a valid array.