a simple predicate dispatcher in coffeescript