function &last() { if (!$this->isEmpty()) { $aKeys = $this->keys(); return $this->aCollection[array_pop($aKeys)]; } $var = null; return $var; }