That's probably better, but the reply instanceof Error is consistent with the rest of the code.