Has `result` always at least one element? If not `array_size` would get quite big.