public function valid() { if (!$this->stmt || $this->preexec) { $this->preexec = false; $this->data = $this->fetch(); } return (bool) $this->data; }