switch from expecting null to expecting undefined for empty params