My answer to the Poodle question was based on standard eCart coding.
your implementation is not standard. I can't speak to non standard coding. I can only base my answer here in the forum on the standard coding.
if you prefer not to use var dup, see this tutorial: