Since you're only using this once and not using this until after the following block, no need to define it here; just use results.numErrors() === 0 as the return value, or define it after the following block.