Gaurd against `child.size` being `0` which is falsey.
Merge pull request #2 from Raynos/patch-1

Gaurd against `child.size` being `0` which is falsey.