Makes sure there is output before parsing