isArrayOrArguments -> isArrayLike & other refactoring