isPlaying method implementation