Could we get a comment explaining how this test prevents a traceback? It's not very clear.