Are you sure that old way with containsKey doesn't work anymore?