Added a function that lets you check if the list is empty or not.