Doesn't `forEach` execute before `if (!match)`? If so this should only be called once.