title: Adapt a Macro for Plone to display nothing if specific folder does not exist?
body: <p>I have a macro for a Researcher Profile on Plone that I would like to adapt to display nothing if the desired folder does not exist. As it is now, if the "selected-publications" folder does not exist, it throws an error. Is it possible to make the macro display nothing if the "context/selected-publications/..." is empty or does not exist? Here is the code I have so far:</p>
  
  <pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" i18n:domain="RDSLocal"&gt;
   &lt;body&gt;
  
      &lt;div id="publications" metal:define-macro="publications" tal:omit-tag=""&gt;
        &lt;!--publications--&gt;
  &lt;a href="selected-publications"&gt;&lt;h2&gt;Publications&lt;/h2&gt;&lt;/a&gt;
  &lt;ul style="list-style: none; margin-left: 0px; margin-right: 0px;"&gt;
  
  &lt;tal:block tal:repeat="publication context/selected-publications/getFolderContents"&gt;
    &lt;li&gt;&lt;tal:block tal:content="publication/Authors"/&gt; (&lt;tal:block tal:content="publication/publication_year"/&gt;) &lt;a tal:attributes="href publication/getURL" tal:content="publication/Title"/&gt;&lt;/li&gt;&lt;br /&gt;
  &lt;/tal:block&gt;
  
  &lt;/ul&gt;
  &lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>