Is this meant to be ```!isPrimitive(...)``` rather than ```isPrimitive(...)```?