Replace `== 0` with `if not`