Added extra check before scrollTop