Removed isArray to fix conflicts with mongoose