Python Check If Dataframe Is Not Defined In React Which Type