Return true if the function pred returns true for at least one element of list, and false otherwise.