Actually, come to think of it, 0 is also a legitimate value for $params['label'] and $params['name']. Empty-string is debatable. (Even if it were prohibited, I'd lean towards an explicit validation with an error rather than automatically replacing ''.)