Update Link.php

Fixes error when $user_groups is false
Merge pull request #3323 from paquitodev/patch-1

Nice catch buddy - thanks a ton!
Fixing multiple FT
Fix page restrictions
Fix deleting
Return preview URL if not live
Hide and default the preview_hash
Returns the ID not the object
PSR
Don't delete by namespace! What are you thinking?! Cleanup.
Clean this up a tich