Change `_.contains` to use `_.keys`.