How I Fixed the "Empty Object" Bug in n8n (and Hit 99.7% Reliability)


TL;DR:


Webhooks often send empty objects ({}) for cancellations, which JavaScript treats as "truthy."
Standard array length checks fail when n8n returns [{}].
A 3-layer validation system (Structure, ID, and Data) prevents blank emails from reaching customers.








...