Prevent potential division by zero