Can `id` be defined and `gaLayers.getLayer(id)` return `undefined`? In other words, could `if (timestamps && id)` be sufficient as a test?