Is there any chance `inspectionResult.result.errors` could be undefined/null?