Remove dead assignment
Remove dead assignment
Additional type check
Refactor duplicate code
Remove dead assignment
Add @return annotation
Remove dead assignment