TTLEditor.java: Fixed/cleaned up value checker logic