<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def should_compile_incrementally(self, vts, ctx):
 """Check to see if the compile should try to re-use the existing analysis. Returns true if we should try to compile the target incrementally. """

    if not vts.is_incremental:
      return False
    if not self._clear_invalid_analysis:
      return True
    return os.path.exists(ctx.analysis_file)