     /// Frame rate at which the asset was recorded.
     public var frameRate: Float {
         get {
-            if let asset = self.asset {
-                let tracks: [AVAssetTrack] = asset.tracks(withMediaType: AVMediaType.video)
-                if tracks.count > 0 {
-                    if let videoTrack = tracks.first {
-                        return videoTrack.nominalFrameRate
-                    }
+            if let tracks = self.asset?.tracks(withMediaType: AVMediaType.video),
+                tracks.isEmpty == false {
+                if let videoTrack = tracks.first {
+                    return videoTrack.nominalFrameRate
                 }
             }
             return 0

    /// If it doesn't already exist, generates a thumbnail image of the clip.
    public var thumbnailImage: UIImage? {
        get {
            guard
                self._thumbnailImage == nil
            else {
                return self._thumbnailImage
            }
            

/// NextLevelClip, an object for managing a single media clip
public class NextLevelClip {

    /// Unique identifier for a clip
    public var uuid: UUID {
        get {
            return self._uuid
