Check for divide by zero