Minor nitpick, but can you extract the errors object out before iteration