Check if user is part of OG group

if (og_is_member('node', $current_group->nid , 'user', $account)) {

Seems that lates og_is_member needs 4 parametars when checking if user is part of the group, not 3 like it is written in most posts online, so you can get it like above.