default boolean ifArray(Consumer<Array> consumer){
  if (isArray()) {
    consumer.accept(asArray());
    return true;
  }
  return false;
}

default boolean ifArray ( Consumer < Array > consumer ) { if ( isArray ( ) ) { consumer . accept ( asArray ( ) ) ; return true ; } return false ; }
if a value is an array , invoke the specified consumer with the value , otherwise do nothing .
