When do you reach the diminishing returns of adding defensive code to handle outcomes that are “unlikely?”. It’s probably worth it if the chances are 1:10,000, but what about when they’re 1:10,000,000? Is it worth adding this extra complexity if you believe it could happen, despite not being sure?