check if iterable is defined