check file_exists before unlink

To prevent the No such file or directory Warnings, check if file exists before delete them via unlink function