enhance 'for' directive to handle iterables and fallbacks for empty
values