Finds the first element of the array satisfying a predicate, if any