Changed the test order so that the one on `isRenderable` is the first one (`inViewport` or `visible` and not defined for non-renderables)