[BUGFIX] Proper detection of empty sheets

This patch introduces a new interface method ``hasChildren()``. Primary use case is to determine if a sheet should be added to a form or not.  Fixes #265.