check for dataType property before trying to read it