Could you change these so that `if (!message) { message = 'Does not match %s.'; }` - ie, so that it always uses util.format? That also avoids using booleans to control logic flow.