title: How to check that class method require parameter
body: <p>For example there is Foo class object. Not try-catch expression</p>
  
  <pre><code>class Foo {
     function Bar($a){
     }
  }
  
  $foo = new Foo();
  
  if(hasRequiredParams(Object $foo, MethodName 'Bar')){
     do something;
  }
  </code></pre>