public function hasPlaylist($name)
{
$playlists = $this->getPlaylists();
foreach ($playlists as $playlist) {
if ($playlist->getName() === $name) {
return true;
}
if (strtolower($playlist->getName()) === strtolower($name)) {
return true;
}
}
return false;
}