This check is unnecessary. You can safely call `clearTimeout()` with `undefined`.