Use bool type instead of struct