function parentHasSingleChild(parentURI) {
	let parentTypes = rdfGraph.getTypes(parentURI);
	if (parentTypes.includes(BT.Root)) return true;
	return parentTypes.find(type => {
		return nodeDefs.childCount(type) == 1;
	});
}
// Helper to check whether the current node only has 1 child
Helper to check whether the current node only has 1 child
Helper to check whether the current node only has 1 child
function parentHasSingleChild(parentURI) {
	let parentTypes = rdfGraph.getTypes(parentURI);
	if (parentTypes.includes(BT.Root)) return true;
	return parentTypes.find(type => {
		return nodeDefs.childCount(type) == 1;
	});
}
function parentHasSingleChild ( parentURI ) { let parentTypes = rdfGraph . getTypes ( parentURI ) ; if ( parentTypes . includes ( BT . Root ) ) return true ; return parentTypes . find ( type => { return nodeDefs . childCount ( type ) == 1 ; } ) ; }
Helper to check whether the current node only has 1 child
Helper to check whether the current node only has 1 child