Whats this empty block for? Do you mean

```
if (data.hasOwnProperty(i) && i!=='labels'){