check file exist before create it