def _file_has_previous(planner, resource):
    """Returns true if the task has seen the file before."""
    history = planner.history.get(planner.task.hash, {}).get('inputs', {})
    return resource.ref() in history
