Delete this line too. The discoveryExists variable is no longer used.