if hoge == True: は使うと問題起きるので
if hoge:
で良い