the first element or null if the array is empty.
the first element matching the predicate or null if there is none. Does not use GdxArray.iterator, so it does not allocate and can be safely nested.