How to get Sprint Name of Last Closed Sprint

Getting this error
image

I think it is related to the “.item(0).name” portion