checking for playlists array length on statehandler