Add error checking to make sure we dont try to access an element in an empty list