user .nil? instead of == nil