Проверка Python для неэтипа
if variable is None:
# do your stuff
Marc Tolkmitt
if variable is None:
# do your stuff