check if array has object inside py code example Example: check if object is array like python if hasattr(N, "__len__")