Key exist query in registry