You can just do `if not skipreg: skipreg = None` here, or `skipreg = skipreg or None`