`id` and `gaLayer.getLayer(id)`  are already tested in `getLayerTimestamps` , no need to change the if