1) Corrected logic in method name check.