Sprawdź, czy obiekt to tablica jak Python

if hasattr(N, "__len__")
Real Raccoon