use built-in empty list, remove nested try block