Implement handling an empty list and a sinle item list in the init function