contentType check for nil