src/Reflection.js
function(name) {
        var list = this.getMethods();
        for (var i in list) {
            if (list[i].getName() === name) {
                return true;
            }
        }
        return false;
    }
function(name) {
        var list = this.getMethods();
        for (var i in list) {
            if (list[i].getName() === name) {
                return true;
            }
        }
        return false;
    }
function ( name ) { var list = this . getMethods ( ) ; for ( var i in list ) { if ( list [ i ] . getName ( ) === name ) { return true ; } } return false ; }
Returns true if a method by the given name exists.

@return bool
Returns true if a method by the given name exists .