I did a few options with the existential operator, `?`, but this keeps the JS output tidy as well.