     
     @IBOutlet fileprivate weak var tableView: UITableView!
     
+    private var isAdd = false
     private var team: Team!
     
     // MARK: ライフサイクル

        prepareTeam()
    }
    
    private func prepareBackgroundView() {
        let image = team.loadTeamImage().teamImage?.retina
        BackgroundView.notifyChangeImage(image)

class TeamEditViewController: UIViewController {
    
    // MARK: ファクトリメソッド
    class func create(for team: Team?) -> UIViewController {
        return R.storyboard.teamEditViewController.instantiate(self) { vc in
            if let team = team {
                vc.team = team
            } else {
                let newTeam = Realm.Team.create()
                vc.team = newTeam
                vc.isAdd = true
            }
        }
    }
    
