issue #1 fixed - isArray checks for array