nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqjv3930uydvg8v2jd93x0uq4usjzuqermh9t5ppvk4n7syj5ygyqqmag7am (nprofile…g7am) doing isinstance() is an antipattern in Python, the more correct way is to try to iterate over the variable and check if it errors out.
if len( the_list ) < 1:
you can just do "if the_list:" instead of that