Want to create a `Song` object. How do I check if this `Song` object is in a particular user's `UserProfile` to avoid repetition?

tried this but threw me an error `argument of type 'QuerySet' is not iterable`;

```
songs_available = user.userprofile.liked_songs.all()
if not song in songs_available:
   user.userprofile.liked_songs.add(song)

```

`models.py`

```
class Song(models.Model):
track_name = models.CharField(max_length=250)
artiste_name= models.CharField(
max_length=200)
album = models.ForeignKey(Album, on_delete= models.CASCADE, null=True, default=None, related_name = 
"songs")

class Meta:
    db_table="Song"

def __str__(self):
    return self.track_name

class UserProfile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE, default=None , null= True)
liked_songs = models.ManyToManyField("Song", null=True , default=None,  
related_name="users_that_liked_me")

class Meta:
    db_table = "UserProfile"

def __str__(self):
    return self.user.username

```

`views.py` (part of it)

```
 song, created = Song.objects.get_or_create(track_name = track,
 artiste_name = artist,
 album = album)

```

wanted to try `if created` but that only checks for the song model as many users could have the same song, it doesnt really help