             #elseif os(OSX)
             if #available(OSX 10.12, *) {
                 if let player = self.player {
-                    if(player.items().count > 0){
+                    if(player.items().isEmpty){
                         self.looper = AVPlayerLooper(player: player, templateItem: player.items()[0])
                     }
                 }

                        playSpeed: playSpeed,
                        networkHeaders: networkHeaders,
                        result: result
                );
                break;
                
            default:
                result(FlutterMethodNotImplemented);
                break;
                
            }
        })

                        code: "METHOD_CALL",
                        message: call.method + " Arguments[audioType] must be a String",
                        details: nil)
                    )
                    break
                }
                guard let volume = args["volume"] as? Double else {
                    result(FlutterError(
                        code: "METHOD_CALL",
                        message: call.method + " Arguments[volume] must be a Double",
                        details: nil)
                    )
                    break
                }
                let seek = args["seek"] as? Int //can be null
                guard let playSpeed = args["playSpeed"] as? Double else {
