Should this be `var hasMoment = ...` ?