Only write out modifier if it's non-null