factoring out an is_truthy convenience function