implement if in terms of bool