Added std::map helper method to find a value or return a default.