Use != '' instead of != nil