support "isinstance(item, list)" cases on branch