check if value of field is set before serialize