def METHOD_NAME(path):
    """Returns True if path is an archive, False otherwise."""
    return (not os.path.isdir(path)
            and (magic.from_file(path, True).split('/')[1] in ['zip', 'x-xz', 'gzip']
                 or os.path.splitext(path)[1] in ARCHIVE_EXT))