may be it's better to place conditional before creating WorkloadProcessLatencyPercentile object.