Refactor: Replace int with bool
Refactor: Replace int with bool
Refactor: No hanging braces
Refactor: Replace int with bool
Refactor: Replace int with bool
Refactor: Replace int with bool
Refactor: Hide local function
Refactor: Replace int with bool