Checking for method existence in calls