results = []; } else { $this->results = [ SearchResult::newFromTitle( $match, $this ) ]; } } public function numRows() { return $this->results ? 1 : 0; } }