The exists() method is utilized to test whether a predicate holds for some of the elements of the set or not.
Method Definition: def exists(p: (A) => Boolean): Boolean
Return Type: It returns true if the stated predicate holds true for some elements of the set else it returns false.