I know you "lifted" this from arrayOf:
@devs but wouldn't simply `if (error)` be the correct approach, anything can be an error value and I don't see why we need to explicitly test for `instanceof Error`.