Add ResultsExist.

This is essentially a copy/paste of code which ribasushi provided to me
via IRC.
fix actual functionality
make a more complete test
normalize documentation