For decades, the appendix has been dismissed as a useless organ — a leftover from human evolution with no real function.