public function __construct(array $result) { if (!isset($result['matches'])) { $result['matches'] = []; } $this->result = $result; parent::__construct($result['matches']); }