title: isset() on codeigniter objects
body: <p>How can I achieve something that looks like:</p>
  
  <pre><code>if (isset($this-&gt;session-&gt;flashdata('user_profile'))) {}
  </code></pre>
  
  <p>without:</p>
  
  <pre><code>Fatal error: Call to a member function flashdata() on a non-object in ...
  </code></pre>
  
  <p>The issue is that it returns an error when that thing isn't set rather than continue as one might expect. If it is set, everything works out fine.</p>
  
  <p>...</p>
  
  <p>I have also tried:</p>
  
  <pre><code>$tmp = $this-&gt;session-&gt;flashdata('user_profile');
  if ($tmp) {
  </code></pre>
  
  <p>but to no avail.</p>