Fixed hasRule() method.
Merge pull request #41 from Kilte/fix-has-rule

Fixed hasRule() method.