This test shouldn't be necessary with the direct comparison on the next line.