title: can I use object operator -> in if statement
body: <p>Hi I have <code>$images[ ]</code> as an array containing selected rows from my database and I want to echo a link if the link field in the row is not null.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>if(isset($images[1]-&gt;link)){
      echo"&lt;p&gt;".$images[1]-&gt;link."&lt;/p&gt;";
  } ?&gt;
  </code></pre>
  
  <p>I'm just starting out so I appreciate any help.</p>