added HasElement method for Spark Lists