Is there any way to identify if underlying org has customer Portal enabled, in apex ?
what I can think of is querying all the profiles and checking if UserType field has any of the below values, CSPLiteUser PowerPartner PowerCustomerSuccess CustomerSuccess
Is there any other way to do this ? Does this approach work for community ? would it continue to work if new types of portal/community licenses are added ?