change conditional on WF_LOW_RESOURCES to just check whether it exists with non-zero value