serialize doesn't add null if there are no children