Added initial evaluation of variable, it may end up being back to front but cannot think of a good way to solve this right now other than caching the local var and inverting it, but it wont collapse or expand properly because the element does not exist in the DOM properly yet.