Here,  we want to only `togglePause` if the player is currently playing. A little confusing, but it's for when we pause the current active tab before switching to a new tab. If the current active tab isn't playing, we don't want to start it and then switch to a new tab.