Remove: unnecessary cast to bool
Fix: var name
Remove: unnecessary array key