function moved from utility.js to formatter.js
appended isArray function for legacy browser
appended comment