Use correct item name

Used data in another item while testing but forgot to change before PR, fixed it now and added a check to be sure the key is present.