Only in the appropriately named render method, which will use code to choose what to render and <i>not to do anything else</i>. How else would you satisfy the requirement to display a list of items and a special item if the list is empty?<p>The danger you run into is PHP nightmares where the programmer has e.g code that accesses and fetches items from a database in the middle of the view.