We need to check `offset + length <= arr.length`?