is this capturing the result of the if statement in parse_result? I'm used to seeing that on one line