I have a Boolean variable. It is stored in a hidden input field. Basically, if the user is signed in, it is false, if not, it is true.
false
true
Ther
document.getElementsByClassName returns array so what you are interested is :
document.getElementsByClassName
document.getElementsByClassName('project_download_btn')[0]