public function last()
    {
        return !empty($this->documents) ? $this->documents[count($this->documents) - 1] : false;
    }
public function last()
    {
        return !empty($this->documents) ? $this->documents[count($this->documents) - 1] : false;
    }
public function last ( ) { return ! empty ( $ this -> documents ) ? $ this -> documents [ count ( $ this -> documents ) - 1 ] : false ; }
Gets the last document from the results.

@return mixed The last document, or false if the result is empty.
Gets the last document from the results .