added fail-safe approach to empty checkbox value if not determined in config
improved fail-safe for checkbox