Refactor: Replace char with bool
Refactor: Localize variable