public function markRelease($release = null, $state = true)
    {
        $release = $release ?: $this->getCurrentRelease();

        // If the release is not null, mark it as valid
        if ($release) {
            $this->state[$release] = $state;
            $this->remoteStorage->set($release, $state);
            krsort($this->state);
        }
    }