Refacotr about checking bool type
exec gofmt