getoptionsfromarray is required.