hasMethod composite call fix: call to child definition only if it has given class