refactor: move isChecked (option -> util)
refactor: move toInt (background -> util)