An alternate approach would be moving that check to an utility function and exposing `tblparser.isHeader`.
Or if you're feeling ambitious you could try using prototype inheritance and [instanceof](https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Operators/instanceof)