Student or Learner
"These bodies exercise public powers, but only on the condition that they operate in an independent, legal, and democratic manner."
Is "the" necessary? I don't think so.
You are right. Meriam-webster puts "the" in the pranthesis.
In AmE you would more likely see this sentence as it appears in the original post.
I think the definite article gives the condition a bit more force.