Cb-7904: Pull request for nightlys

I'm confused about how I should check against isInForEachRepoFunction. It is set to true and the top and false at the bottom. What should the check do?