handle case where link is empty