checking if theres only one element in the list or none