Renames ENV check
Accepts jQuery promises
Returns jQuery promise for Aura