exit getMetrics early when possible to improve performance