Easy way to access and read sidebars on .compact

Oops, it was meant to be a check to make sure the button only appeared when browsing a subreddit, so blank pages didn't appear. Before I fix it, would this kind of thing be useful? Also is there a better way of checking than looking at the sr_path?