One could enable depth testing before binding an FBO that has a depth buffer so this test is no longer useful or correct.