Implement context.hasRes & context.hasErr
Merge pull request #190 from golyshevd/checker

Implement context.hasRes & context.hasErr