This line protects against 'Not()', where arg = None. In this case, it usually raises 'IndexError : tuple index out of range', but I guess giving a TypeError is more appropriate in specifying the reason for the error, for someone who is not familiar with the inner functioning of Not.