@jchristo4 I think that

    visible = document.access_panels.online.links.blank? ?  'hide' : 'show'

http://api.rubyonrails.org/classes/Object.html#method-i-blank-3F