`typeof NaN === 'number'`, so maybe add a `&& !isNaN(scrollTo)`?