changed check for none from double-equals to "is" for syntactic reasons