public function hasFlash($name) { if (false === $this->started) { $this->start(); } return array_key_exists($name, $this->flashes); }