check if YAML file exists on cleanup