Refactor bool method