Optional: `base/stl_util.h` have a function `ContainsKey()` that might be useful here.