UITableViewCellAccessoryType in if-else statement