We may change https://github.com/ceph/ceph-cookbooks/blob/master/libraries/default.rb#L107 with your check.
Something like that:
`mon_secret unless monitor_secret.empty?`
mon_secret will return a string or nul if empty