Guard against division by zero