This should just be `if (obj) {`