Add has_key and whose_value for mappings