As I understand it, when a conditional statement like yours is parsed, everything in it is parsed at that point, whether needed or not (which is why they can be so slow). If a placeholder hasn't been set at that point, the corresponding placeholder tag will be removed.