Added is_hash function