- Added check for file before trying to remove it