How to know when an onion is bad