it might be helpful to wrap the entire makeZeroTimeout code in a check for `window`, since none of it is necessary. That would also mean the checks below could perhaps include `ES.IsCallable(makeZeroTimeout)`?