How to check if cable is live