use ```isinstance(paths, (tuple, list)):```