check if we have ParserOutput object

I'm not a fan of using instanceof, but still ok if you think there is no other approach