Used Enumerable.SingleOrDefault instead of Enumerable.Single, in order to avoid a try/catch block.