need to check for the file before trying to remove