public function is_disconnect() { if ($this->headers->METHOD == 'JSON') { return $this->data['type'] == 'disconnect'; } }