An optimisation that reduces the number of branches we test.