comparsion to none should be 'if conditon is None'