test: use existential, don't just test for undefined