[bugfix] remove empty values

This is necessary for the string '' (no config set) to become an empty
array and count() will return 0 instead of 1