switch to using method name check rather than method existence check