<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def is_sync_table(self, archive, interval, **import_args):
 """ Checks if this is a request for a sync dataset. The condition for creating a sync dataset is to provide a URL or a connection to an external database and an interval in seconds :param archive: URL to the file (both remote URLs or local paths are supported) or StringIO object :param interval: Interval in seconds. :param import_args: Connection parameters for an external database :type url: str :type interval: int :type import_args: kwargs :return: True if it is a sync dataset """

        return (hasattr(archive, "startswith") and archive.startswith("http")
                or "connection" in import_args) \
            and interval is not None