Better way of handling presence of parser state.