public function isMimeType($filename, $mimeType)
    {
        if (is_array($filename)) {
            $result = array();
            foreach ($filename as $key => $value) {
                $result[] = ($this->getMimeType($value) == (is_array($mimeType) ? $mimeType[$key] : $mimeType))
                            ? true
                            : false;
            }
            return $result;
        } else {
            return $this->getMimeType($filename) == $mimeType ? true : false;
        }
    }
public function isMimeType($filename, $mimeType)
    {
        if (is_array($filename)) {
            $result = array();
            foreach ($filename as $key => $value) {
                $result[] = ($this->getMimeType($value) == (is_array($mimeType) ? $mimeType[$key] : $mimeType))
                            ? true
                            : false;
            }
            return $result;
        } else {
            return $this->getMimeType($filename) == $mimeType ? true : false;
        }
    }
public function isMimeType ( $ filename , $ mimeType ) { if ( is_array ( $ filename ) ) { $ result = array ( ) ; foreach ( $ filename as $ key => $ value ) { $ result [ ] = ( $ this -> getMimeType ( $ value ) == ( is_array ( $ mimeType ) ? $ mimeType [ $ key ] : $ mimeType ) ) ? true : false ; } return $ result ; } else { return $ this -> getMimeType ( $ filename ) == $ mimeType ? true : false ; } }
Returns the results of the mime type check either as a boolean or an
array of boolean values.

@param string|array $filename The file path whose type to test.
@param string|array $mimeType The mime type to test against.
@return boolean|array
Returns the results of the mime type check either as a boolean or an array of boolean values .