neo4j/neo4j — pull request #2218 by cleishm (2014-04-01 19:32:01+00:00)
Title: Stop Foldable#exists once it has been found

Also avoid calling partial function isDefinedAt and apply, by using
a single lifted version [these are optimised in the common
case](https://github.com/scala/scala/blob/master/src/library/scala/PartialFunction.scala#L103).