assign $this->getNode() to a var

according differents comments from @dbu @ismith