Playlist finished callback

Hi,
Is there a way to tell if a playlist has played all it’s tracks? Or even better, to queue up the next playlist?
More broad question - is there a good way to modify callbacks on playlists/tracks?