You are correct to a certain degree. However, Switzerland does differ somewhat as it has a highly trained (mainly civilian)military and a sizeable ready militia that can address an attack within a matter of hours. Their military readiness system is incredible, Their military is based on “defense” so their is no need to field a large active military of “offense” which is expensive and is for assault outside of areas they already control as their own. Few people have an appreciation for the Swiss military. Their populous is highly trained and quickly responsive. Coupled with their difficult terrain, advanced technology and highly trained personnel, they are no one to mess with.
Costa Rica according to the article has taken it a step further and implies they do not have the military resources that Switzerland has. I am quite familiar with the situation in Switzerland but have no real first hand knowledge of the situation in Costa Rica, but it is an interesting insight.