If check on the related_posts variable