Fix formatting
Handle empty links case when `link` is called