Updated folder getItem method