public function first() { return !empty($this->documents) ? $this->documents[0] : false; }
public function testFirstNoResults() { $result = new Result(array(), 0); $doc = $result->first(); $this->assertFalse($doc); }