I think it's better to do

````
if (!size) {
````

...here because it's not an explicit check against null (`===`). Any falsy value (like `undefined`) will pass the test so specifying null is a little misleading.