Simplify the code

A check like:

'if subtotal:'

if the same as

'if len([x for x in idx if '!' in x])'