Added isValidContentType().