Check for non-null children. Fixes #72