main: remove usage of bool return values