check if parser output generated before using

Could we use Output instead of Opt here?