return getEvents(user)
            .then(events => {

                if (0 === events.length) {
                    throw new Error(