if (it != client_map_.end()) {
  if (it->first != client_cookie) LOG(FATAL, "Something bad happened with my comparator");
  ...
} else {
  LOG(ERROR, "not in client map");
}