Reuse the getChildren() method