checks for existance of items before removing