Not necessary. From the HTML5 spec:

> The clearTimeout() and clearInterval() methods take one integer (the value returned by setTimeout() and setInterval() respectively) and must cancel the specified timeout. When called with a value that does not correspond to an active timeout or interval, the methods must return without doing anything.