Be able to use a boolean function

* [x] add tests
* [x] add fork
* [x] document stuff

Inspired by https://github.com/gulpjs/gulp/issues/129