Simplify code to directly use unsigned integer value as boolean value in conditional tests (0 means false, other numbers mean true).