Yes, currently only "ping" commands yield a non-zero length response. However, I wanted to separate the command handling from the response sending so that it's simple to add new commands if necessary.

If we move this line up into the ping command, then add another command which writes data, we'll have to factor it back out. And, we risk forgetting to factor it back out, introducing a bug (or code duplication).