This should be ``if failures and failure_path`` for clarity, or better yet include explicit checks, such as ``if len(failures) > 0 and failure_path != None``.