Revised to support falsey values to publish