title: Output formatted version of variable if it has a value, blank otherwise
body: <p>I'm looking to add an if statement to display a title if something is in a variable but not 100% sure how to go about it.</p>
  
  <p>My current coding shows:</p>
  
  <pre><code>&lt;?php echo $quote-&gt;getmessage(); ?&gt;
  </code></pre>
  
  <p>But I would like it to show a title and the content of the message if there is content in the variable. If there is nothing within the variable I don't want to show anything.</p>