public function isActive() { return isset($this->data->session) && ($this->data->expires_at >= time() || (bool) $this->config->get('test_mode')); }