title: function_exists returns false every time
body: <p>I'm trying to check whether a function exists or not but I keep getting false in my if</p>
  
  <p>I try to call the function like this, where <strong>$function is the function name</strong>:</p>
  
  <pre><code>if (function_exists($this-&gt;module-&gt;$function))
  {
      $this-&gt;module-&gt;$function($vars);
  }
  else
  {
      echo 'no';
  }
  </code></pre>
  
  <p>The variable <code>module</code> is defined as the class where the function should be called:</p>
  
  <pre><code>$this-&gt;module = $module;
  $this-&gt;module = new $this -&gt; module;
  </code></pre>
  
  <p>Am I missing something here?
  Thank you!</p>