SyntaxFix
Write A Post
Hire A Developer
Questions
Use typeof for elements checks.
if(typeof(element) === 'undefined') { // then field does not exist }