import pathlib


def out_of_date(source_path, target_path):
    """Return True if source's modification time is more recent than target's"""

    source_time = pathlib.Path(source_path).stat().st_mtime
    if pathlib.Path(target_path).exists():
        target_time = pathlib.Path(target_path).stat().st_mtime
        return source_time > target_time
    else:
        return True