Use std::map::count() instead of std::map::find() != std::map::end()