Use getItem() to not repeat logic