You can check if `length` of `data` is correct to speed up failures.