Means for detecting the presence of an arc or discharge