Can't this be:

```js
var isValidResult = methods['isValidResult'](result);
if ( isValidResult && (typeof methods['yes'] == "function")) methods['yes'](result);
else if ( !isValidResult && (typeof methods['no'] == "function")) methods['no'](result);
```

I think that looks better