code: public static <E> Optional<E> maybeLast(E[] array) {
          return new MaybeLastElement<E>().apply(new ArrayIterator<>(array));
      }
docs: Yields the last element if present, nothing otherwise.
  
  @param <E> the array element type
  @param array the array that will be consumed
  @return the last element or nothing