Added additional check for link processing