def _has_fr_route(self):
<EOL>if self._should_use_fr_error_handler():<EOL><INDENT>return True<EOL><DEDENT>if not request.url_rule:<EOL><INDENT>return False<EOL><DEDENT>return self.owns_endpoint(request.url_rule.endpoint)<EOL>
Encapsulating the rules for whether the request was to a Flask endpoint