All members of the nightshade family contain a poisonous compound, called solanine. It can be found in the leaves, fruit, and roots of these foods. As for tomatillos, as long as they’re ripe, the husk is removed, and the sticky film is washed off, they’re completely safe to eat.