This simplifies some logic in if-conditions, because smarty just returns an empty string for undefined variables. Also, this commit removes unnecessary values from HTML input attributes.