separated the code that checks/creates/adds a new item in the list