Implemented hasRules()

hasRules() looks at $mRules and returns true for a non-empty string, and
false for an empty one

Change-Id: Ia7a1316498dc3f2753f61134705c9bd80fc9caeb
Merge "Implemented hasRules()"