We had a poodle that could get out of anything we could rig up.
I had babygates up at one point that had the vertical bars and I was 100% sure Armani could not fit through them until the day I watched him do it... I had taken him over and put him near a bar and his head was definitely too big to go through, so i was confident he would be confined... but I stood by with my jaw on the ground while he just twisted his body and shoved his head right through the bars like it was bendable. I really have no clue how he managed but he did... they say where there is a will, theres a way and Yorkies are not short in the will department.