Doesn't return nodes with no children when looking for records to return