Conditional check before calling aggregate metrics