[WIP] Use bool as return type on functions that return a bool

Not the goal of this PR, but it looks to me like this branch ins't reachable.