Add additional type check
Remove dead assignment
Remove dead assignment
Remove dead assignment
Remove dead assignment
bool should be boolean
Remove dead assignment
Remove dead assignment