Add isOpen() method for the Link class.