code: def _task_file_exists(self, task_fs):
          
          for filename in ["task.{}".format(ext) for ext in self.get_available_task_file_extensions()]:
              if task_fs.exists(filename):
                  return True
          return False
docs: Returns true if a task file exists in this directory