You can just do: `if not i`.  QPyNullVariant will return False if bool checked.