Check the existence of the method given