Made sure to throw an exception if there is no data inside our List and we call getRandomElement method