better to_bolean method, as per Sam's suggestion