public function lastItem() { if (count($this->items) === 0) { return; } return $this->items[count($this->items) - 1][$this->getField()]; }