$modes = (isset($channel->modes)) ? "+" . explode(" ",$channel->modes)[0] : "<none>";
$topic = '';
if (isset($channel->topic))
$modes = (isset($channel->modes)) ? "+" . explode(" ",$channel->modes)[0] : "<none>";
$topic = '';
if (isset($channel->topic))
$date = explode("T", $channel->creation_time)[0];
$out[] = [
"Name" => htmlspecialchars($channel->name),
$date = explode("T", $channel->creation_time)[0];
$out[] = [
"Name" => htmlspecialchars($channel->name),