It's not a reputation but an actual policy. It's hard to untangle but the policy has more to being surrounded by other states (no ocean) and having big walls around it already, and being too small for geopolitical strength.
The country was last invaded in the napoleonic wars.
The country was last invaded in the napoleonic wars.