coerce to null if empty