Update Link.php

Fixes error when $user_groups is false