changed _isArray to prevent extra function call