Moved ArticleID check to separate function