should be == nil not != nil