log zero check