def _is_contain_domain(self, domain, email): email_domain = Utility.find_email_domain(email) return email_domain in domain if email_domain else False