Procedural OR BOOL creating

I’m trying to ask; I have an array ( Citizen) and size changes according to entries. I need to control the names and get data from another large array( Population) . I’m using for each for each Citizen entry and making for each Population to find them in the array. If I can can some OR BOOL for each entry in Citizen Array I can only do once. I hope I manage to explain myself. Is there any solutions for lowering the work load. Except “For loop with Break”