We did discuss a class, yep. If I was refactoring this, I'd let the client of the scroll depth pass in the element in. Inside scroll depth, we could then just null test.