How to set a value for an empy list