Code Review Check If A Javascript Variable Exists And Checking Its

Code Review Check If A Javascript Variable Exists And Checking Its