Test if nil or empty string

There has been some unexplained behaviour here