Switzerland kept out of wars because it wasnt invaded. Poland didnt decide to join WW2.
IIRC they even shot down german war planes that entered their airspace and suffered no retaliation.
So yeah, they do have a knack for maintaining their neutrality.