Please rewrite it this way:

```javascript
// Don't leak
if (sockets[name].length === 0)
  delete sockets[name]
```