Or maybe this:

```js
if ( methods['isValidResult'](result) && (typeof methods['yes'] == "function")) methods['yes'](result);
else if (typeof methods['no'] == "function") methods['no'](result);
```