Skip loadVar if a button isn't clickable

I want to check if a button is disabled (it’s faded out, present but can’t be clicked) and instead of failing, skip to the next iteration (the next loaded var).

How can I use an ‘if’ statement to check if a button is disabled?