Use implicit bool conversion to number to avoid a branch