Check the layer length; not the done