Could, depending on layer (wms, kml perhapbs even bod layers), `attribuation` be undefined?