Check if file exists before trying to delete it