I know this was just a c&p, but this should be an explicit comparison. `!= nil`.