Our module already implements the latter (allow_empty), adding the former should be easy.
allow_empty