[Refactoring] int to bool

Code refactoring:
- Use `bool` instead of `int`.