I Have a nested array. They both have a value called foo. foo can be A or B. Now I want to compare all elements and want to get true if all are either A or B.