check if items are in session before accessing them.
place commit below