I think you can just use info.uniqueNum || 0.  That way, if uniqueNum is set to null you get 0 instead of null.