from pathlib import Path


def already_processed(processed_paths, force):
    """
        Check if re-process is not forced and all processed files exists
    :param processed_paths:
    :param force: is re-processing forced?
    :return:
    """
    if force:
        return False    # re-processing is forced for this phase
    all_processed = True
    for path in processed_paths:
        if not Path(path).is_file():
            all_processed = False
            break
    return all_processed