Wire harness detection and judgment