fixed issue where if rules are null, they cannot be iterated through
Merge pull request #18 from shole/master

fixed issue where if rules are null, they cannot be iterated through