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