src/Reflection/ReflectionClass.php
public function hasMethod(string $methodName) : bool
    {
        try {
            $this->getMethod($methodName);

            return true;
        } catch (OutOfBoundsException $exception) {
            return false;
        }
    }
public function hasMethod(string $methodName) : bool
    {
        try {
            $this->getMethod($methodName);

            return true;
        } catch (OutOfBoundsException $exception) {
            return false;
        }
    }
Does the class have the specified method method?