Simplify foreach()

We can continue here and save one level of deepness.

Alternatively, when it is not an array, we could just throw an exception here - as it would not be a valid rule and skipped/ignored anyway.