Existential check for 'elem' via guard.

This was blowing up in my Chrome console.