Nit: there's a tense difference between this and is_complete (past tense versus present). Ideally, conditions should be expressed in terms of the present tense, so "is_failed" is completely appropriate here.