public function hasMethod(string $methodName) : bool
    {
        try {
            $this->getMethod($methodName);

            return true;
        } catch (OutOfBoundsException $exception) {
            return false;
        }
    }