here write `return isset($this->methods[strtolower($methodName)]);`

and change line 603 adding a strtolower to the key var.
Replace 596 with a call to hasMethod

Refactor getMethod and removeMethod removing the loops