use short-circuit when checking for line limit exceedance