There might be a new, effective way to diagnose a food allergy, according to research. 