Do test with `in` instead of testing for undefined.