Add hasChildren in API to fix perf issues
Merge pull request #4 from marmelab/has_children

[RFR] Adding hasChildren method to fix perf issues