This is avoiding the index below 0 when the user is trying to scroll more then there are elements on the top