Update check to see if dataTarget is undefined

- Improve readability, as typeof undefined will always result in the
string 'undefined'