Add check for empty shelf.