Removed redundant MimeType check