Use has util method and use comparison opts
Merge pull request #372 from koenpunt/patch-1

Use has util method and use comparison opts