Added self.url_format_is_valid to toplevel class