title: Notice: Undefined property - how do I avoid that message in PHP?
body: <p>Hello I am making this call:</p>
  
  <pre><code>$parts = $structure-&gt;parts;
  </code></pre>
  
  <p>Now $structure only has <em>parts</em> under special circumstances, so the call returns me null. Thats fine with me, I have a <em>if($parts) {...}</em> later in my code. Unfortunately after the code finished running, I get this message:</p>
  
  <p><strong>Notice: Undefined property: stdClass::$parts in ...</strong></p>
  
  <p>How can I suppress this message?</p>
  
  <p>Thanks!</p>