                 view.imageView.image = UIImage(named: "deviceTypeMobile")
             }
             return view
-        } else {
-            return nil
         }
+
+        return nil
     }
 
     override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {

    }

    override func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
        if let client = clients?[section] {
            let view = tableView.dequeueReusableHeaderFooterViewWithIdentifier(RemoteClientIdentifier) as! TwoLineHeaderFooterView
            view.frame = CGRect(x: 0, y: 0, width: tableView.frame.width, height: RemoteTabsPanelUX.HeaderHeight)
            view.textLabel.text = client.name
            // TODO: Convert timestamp to locale-relative timestring.
            let label = NSLocalizedString("Last synced: %@", comment: "Remote tabs last synced time")
            view.detailTextLabel.text = String(format: label, String(client.modified))
            if client.type == "desktop" {


    @objc private func SELrefresh() {
        self.refreshControl?.beginRefreshing()
        profile.remoteClientsAndTabs.getClientsAndTabs().upon({ tabs in
            if let tabs = tabs.successValue {
                self.refreshControl?.endRefreshing()
                self.clientTabs = tabs

                // Maybe show a background view.
                let tableView = self.tableView
                if tabs.isEmpty {
                    tableView.backgroundView = UIView()
                    tableView.backgroundView?.frame = tableView.frame
                    // TODO: Populate background view with UX-approved content.
                    tableView.backgroundView?.backgroundColor = UIColor.redColor()
                    // Hide dividing lines.
                    tableView.separatorStyle = UITableViewCellSeparatorStyle.None
                } else {
                    tableView.backgroundView = nil
                    // Show dividing lines.
                    tableView.separatorStyle = UITableViewCellSeparatorStyle.SingleLine
                }
                tableView.reloadData()
            }
        })
    }

    override func numberOfSectionsInTableView(tableView: UITableView) -> Int {
        return clientTabs?.count ?? 0
    }

    override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return clientTabs?[section].tabs.count ?? 0
    }

    override func tableView(tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
