I had a problem a couple days where I needed to tell if an item was visible on the page and I thought I was going to have to do some crazy checks to see if it was a series of options and it turns out you only have to do the following:

$('#item').is(':visible')

That's it. You throw that into an if and you're done.