Python Check If Dataframe Is Not Defined Error In Javascript W3schools