Maybe return None rather than throw an exception if the list is empty?