[=] pass a null if `errors` is empty
[=] small optimization