@secret.nil? is more idiomatic ruby