Shouldn't we be checking the value as well as the type?