Check for division by zero