code review

Use `boolean`