layer.childLayers isn't always set