public function removeDeniedMimeType($type)
    {
        $key = array_search($type, $this->deniedMimeTypes);
        if ($key !== false) {
            unset($this->deniedMimeTypes[$key]);
            return true;
        }

        return false;
    }