`getLayers` returns an `ol.Collection`, implementing `forEach`. https://github.com/openlayers/ol3/blob/master/src/ol/collection.js#L106