MSRE: declare array out of if statement and warn user if no ruleset is found