Introduced defineVarIfNotPresent (to speed-up applyClosure/usemethod).