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);