Should the `matched` size not simply match the `values` size? With the current condition, you can’t know for sure that the values you expected are all there.