在刪除迴圈中先檢查項目為非 null 物件,避免對非預期結構解構時拋出未捕捉例外。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>