Only restore state if file exists