why is the condition needed at all? wouldn't `value=""` not mean the same as without the attribute?