Very minor, but this would be a little cleaner if you moved this.statistics reference to the if statement and just did

```if (server != null && this.statistics) {```