test HTTPS key existence before testing its value