When we get ParserFunctions enabled, I can use this instead:
{{#if {{{section}}}|section|article}}
To enable a switch between section and article stubs.