Checks if a method is registered.
Consider using the in operator instead: "key" in registry
in
"key" in registry