public function isSubmitted(Request $request)
    {
        $arguments = $this->method === "GET" ? $request->get : $request->post;

        // Check if the form has been submitted at all
        return $this->method === $request->method && $arguments['_form_name'] === $this->name;
    }