sanity check for division by zero