Fasheng: please use is_bool(foo) instead 'foo = "True"'