code: protected function filter_nlastype($n) {
  		if ($this->parent === null) {
  			return false;
  		} else {
  			return (count($this->parent->getChildrenByTag($this->tag, 'total', false)) - $this->typeIndex() === (int) $n);
  		}
  	}
docs: Checks if node matches css query filter ":nth-last-of-type(n)"
  @param string $n 1-based index
  @return bool
  @see match()
  @access private