     }
 
     func observePlaylist(playlist: Playlist) {
-        if let _observer = observer {
-            _observer.dispose()
-        }
+        observer?.dispose()
         observer = playlist.signal.observe { index in
             MainScheduler().schedule {
                 self.loadThumbnail(self.imageViews[index], track: playlist.tracks[index])

    }

    deinit {
        if let _observer = observer {
            _observer.dispose()
            observer = nil
        }
    }

    override func setSelected(selected: Bool, animated: Bool) {

import LlamaKit


protocol PlaylistStreamTableViewCellDelegate: class {
    func trackSelectedAt(index: Int, track: Track, playlist: Playlist)
    func trackScrollViewMarginTapped(playlist: Playlist?)
}
