title: Check if method exists in the same class
body: <p>So, <code>method_exists()</code> requires an object to see if a method exists. But I want to know if a method exists from within the same class.</p>
  
  <p>I have a method that process some info and can receive an action, that runs a method to further process that info. I want to check if the method exists before calling it. How can I achieve it?</p>
  
  <p>Example:</p>
  
  <pre><code>class Foo{
      public function bar($info, $action = null){
          //Process Info
          $this-&gt;$action();
      }
  }
  </code></pre>