Check if file exists before restoring