api: Fold the empty pool check into the main macro