public function isValidChannelValue($value, $channel)
    {
        if (!in_array($channel, self::$channels)) {
            throw new \InvalidArgumentException('Invalid Channel Name');
        }

        if ($channel == self::CHANNEL_ALPHA) {
            if ($value >= 0 && $value <= 127) {
                return true;
            }
        } else {
            if ($value >= 0 && $value <= 255) {
                return true;
            }
        }

        return false;
    }