code: def _removeIfPresent(filename):
      
      try:
          os.unlink(filename)
      except OSError as why:
          if why.errno == ENOENT:
              # Someone beat us to it, but it's gone, so that's OK
              return 0
          else:
              raise
      else:
          # File was present
          return 1
docs: Attempt to remove a file, returning whether the file existed at
      the time of the call.
  
      str -> bool