public function getUser() { // Ensure we have the user info if ($this->user === null) { $this->exchangeCode(); } if (!is_array($this->user)) { return null; } return $this->user; }