master
if (!is_array($config) || !isset($config['host']) || !isset($config['port']) || !isset($config['username']) || !isset($config['token']) ||