oldmap: get rid of the legacy contains_key method