HI I am new to swift and ios development. My code was working up until I've updated to Swift 2.0, I've used swift migrating tool, but I still can't figure out how to sort and fix my code. Please help!

```
import AVFoundation

var backgroundMusicP: AVAudioPlayer!

func playBackgroundMusic(filename: String) {
    let url = NSBundle.mainBundle().URLForResource(
        filename, withExtension: nil)
    if (url == nil) {
        print("Could not find file: \(filename)")
        return
    }

    var error: NSError?

    do {

        backgroundMusicP = try AVAudioPlayer(contentsOfURL: url!)
    } catch {

        backgroundMusicP == nil
    }
    if backgroundMusicP == nil {
        print("Could not create audio player: \(error)")
        return
    }

    backgroundMusicP.numberOfLoops = -1
    backgroundMusicP.prepareToPlay()
    backgroundMusicP.play()
}

```