The code above guarantees that either isPlainText is true or mode is truthy, so I think this can just remain a plain `else` as before...