remove isArray method, and fix require.config bug