Is using if([self isEditing]) redundant?


#1

I was just wondering if the section where we set the editing style for the Add New Item… cell (ie - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath) whether the need to test that we are in editing mode is required (ie if([self isEditing] && [indexPath row] == [possessions count])).

Isn’t this method only going to be called if we are in editing mode anyway? Could we not just say if([indexPath row] == [possessions count])? Just wondering why the extra security?

Thanks (btw awesome book)