From the superfluid to the Mott regime and back: triggering a non-trivial dynamics in an array of coupled condensates