Perhaps remove ternary op here to improve readability? Alternatively, could move collection.wmsLayer.server.supportsCsvMetadataHeaderOutputFormat to an OpenLayers function.