refactor($animate): speed up animationsDisabled check