Diophantine equations with at most one positive solution