Add method `contains` to `Record`.