It does support the ternary operator, when I run that with section undef it produces nothing. Well I suppose I should finish reading aforementioned documentation instead of stopping after GET and SET. The filter solution feels somewhat less elegant though.