I'd rather test if `layer.attribution` is an `Object` in which case I would go with the template no matter what properties it contains.