Try using `===` and `mime_content_type` is [deprecated](http://www.php.net/manual/en/function.mime-content-type.php)