[BUGFIX] Check if file exists before deletion