Account for multiple rules in array