Remove dead assignment
Remove dead assignment
Additional type check
Refactor duplicate code