minor optimization - can we break out of forEach? if not it's not that important, this is something that runs a very limited number of times and only once per build.