protected static function parse_channels($channels)
    {
        if ($channels instanceof Channel) {
            $channels = array($channels);
        } elseif (is_string($channels)) {
            $channels = array(new Channel($channels));
        }
        if (count($channels) == 0) {
            throw new \RuntimeException('channels length is 0');
        }
        return $channels;
    }