I’ve reworked this and removed the array for checking if it is marked as an archive, instead, I’ve included an if statement within the loop to check whether each repeater has archive sub_group marked true or false. This has helped me achieve the results I was after.
Makes more sense that way, though probably not as quick.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users