#to_bool snippet