How can I display the membership of an author in his template page?

I would like the ability to show in which Membership an author of my site is enrolled when viewing their author.php page.
I tried this thread but it didn't work for me.
Is there any alternative to this code:
<?php $member = MS_Model_Member::get_current_member();
if ( $member->has_membership( 16646 ) ) { ?>