Check if current user is following

Hey guys, please help me!
I created a follow button with this tutorial , everything works fine, the only problem I’m having is how to check if the current #userId follows the current profile in order to disable or not the follow button. Thank you very much for the help.