move function that we filter invlaid links to follow durring crawler to MachineLearning.Helper in order to use it gloabaly