req.isLinkOwner is not a function