Checking that method exists