removing typeof

typeof will always return a string which will always evaluate to true
(whether it be ‘boolean’,’string’, etc)

by removing this we can just see if and exists.