added is_trust_set function