fixed check for availability of GetOptionsFromString