Returns whether data for the given token already exists in storage.
string $token The profile token:
string
protected function has($token) {
$db = $this
->initDb();
$tokenExists = $this
->fetch($db, 'SELECT 1 FROM sf_profiler_data WHERE token = :token LIMIT 1', array(
':token' => $token,
));
$this
->close($db);
return !empty($tokenExists);
}