need `!==` here because comparisons to undefined are tricky otherwise