Remove PHP warning when there is no items to remove