Check Person Account is Enabled Using APEX
Sample Code:
boolean isPersonAccount = Schema.SObjectType.Account.fields.getMap().containsKey('isPersonAccount'); system.debug('isPersonAccount-' + isPersonAccount);
Sample Code:
boolean isPersonAccount = Schema.SObjectType.Account.fields.getMap().containsKey('isPersonAccount'); system.debug('isPersonAccount-' + isPersonAccount);