Added check to ensure Object exists prior to getting link()