Ensure that when an array with duplicate items passes through data-foreach we render all the items