public function getConnectionState()
    {
        $directory = Google::make('directory');

        try {
            $r = $directory->users->get($email = config('users.google_apps_user_email_to_check_connection'));
            if($r) {
                $state = 'connected';
            } else {
                echo 'User does not exists: $email<br/>';
            }
        } catch (\Exception $e) {
            $state = 'error';
            $message = json_decode($e->getMessage());
        }

        $result = [
            'state' => $state
        ];

        if ($state != 'connected') $result['message'] = $message;

        return $result;
    }