public function isValid(string $method = null): bool
    {
        if ($method === null) {
            $method = $this->getMethod();
        }
        return $this->isEnabled() && $this->methodIsCallable($method);
    }