I've now changed this throughout the code to a boolean - getChildren