With your last edit, you invalidated the current answer. Something we don't take lightly on Code Review. However, reverting the question back to it's original state would make it off-topic, since example code is off-topic. For among others
exactly the reason you just ran into, the answer was less helpful to you because you didn't provide the code you actually use. Please look at the
help center and make sure the current code is actual code. —
Mast 12 secs ago