Closes #846 Fix $og_membership check

#846