<pre>
if not ('snmp_name' in kwargs and kwargs['snmp_name'] and
            substring in kwargs['snmp_name'].lower()):
</pre>