If `options.logins` is undefined, are you creating an array here?