check file exists before convert