Implement hasNaN