More idiomatic way of handling boolean results