Use bool instead of if/then