just check for Arrays instead of duck-typing