type-safe comparison with === 1 seems to work