Converted hash_pair_exists to ORM too