Use isset not empty in config setting and fix log message.