It's generally safer to check "typeof dataTable" is undefined, rather than matching undefined.