As a person who reads your code I&#x27;d like to know which one you were checking for. If you were checking for None or an empty list, for instance, because there is often a non-semantic difference between them.<p>E.g. one can mean &quot;value not provided&quot; while the other means &quot;there aren&#x27;t any of that thing&quot; and the behavior you want will often be different depending upon which one it is.<p>It&#x27;s this type of subtle difference that often causes obscure bugs.