contains -> containsKey with backwards compatibility.