Add Has() functionality

Thanks to GitHub user icholy for the idea. This closes issue #4.