Add exists() method to Hash trait.