avoid g_hash_table_contains