nil check didn't work, but checking for class NSNumber does