Swap these two checks around, there's a slight speed boost to be had