updateWrapperStates = function () {
		modulePositions.forEach(function (position) {
			const wrapper = selectWrapper(position);
			const moduleWrappers = wrapper.getElementsByClassName("module");

			let showWrapper = false;
			Array.prototype.forEach.call(moduleWrappers, function (moduleWrapper) {
				if (moduleWrapper.style.position === "" || moduleWrapper.style.position === "static") {
					showWrapper = true;
				}
			});

			wrapper.style.display = showWrapper ? "block" : "none";
		});
	}
Checks for all positions if it has visible content.
If not, if will hide the position to prevent unwanted margins.
This method should be called by the show and hide methods.

Example:
If the top_bar only contains the update notification. And no update is available,
the update notification is hidden. The top bar still occupies space making for
an ugly top margin. By using this function, the top bar will be hidden if the
update notification is not visible.