Know if a response has a media property/entity before return

Well again looking at the headers you can look for things like
Content-Type: multipart/form-data; As an example