public function exists() { try { $this->connection->getDataset($this->identity + ['fields' => 'datasetReference']); } catch (NotFoundException $ex) { return false; } return true; }