Check that method is valid
Docs