What the hell does this do? This is incredibly overcomplicated, especially since you're only using this variable a single time. You iterate over the values from `userData.permissions at LEAST three times between this and the call to `_.every` below. Just store a single boolean, iterate once, and short circuit if your end condition is matched. This is far more inefficient than it needs to be.