I'm not sure this is more efficient. The syntax is strange, you are doing a first iteration over children, then another one ?