Refactor: Replace int with bool
Refactor: Remove unnecessary casts
Refactor: Replace int with bool
Refactor: Replace int with bool