Checking for environ attr before deleting.