how to check user is subscribe or not

urvin
Helllo Everyone, I Am Working on LMS or i have to check the user is subscribe or not in that lerninig path. or restrict on that url of lerninig path module to that user.and back to the subscribe page.