The occurrence or absence of cash is too broad to draw a correlation to terrorism.  Same goes for weapons.  Power vacuums enable organized actors but those same actors (in this case Islamists) can also gain a foothold by coopting the democratic process of a powerful state.  None of those things address the mentality of terrorists or the ideology of groups that give rise to organized terrorism.