fallback functions of array for legacy browsers.