Check if the item is null before we try to operate on it.