Numpy Check If 2d Array Is Not Defined