Phenolphthalein is used to: