You should wrap the ternary op in braces, otherwise `'' + message` will be interpreted the wrong way I think. That's why I used `message` twice in the ternary op - had some duplication, but was easier to read.