Add check for child nodes re #7617

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>