map__contains_symbol
bool map__contains_symbol(const struct map *map, const struct symbol *sym);
if (sym && map__contains_symbol(map, sym)) {