public function isImage() {
		try {
			if (!function_exists('exif_imagetype') && !function_exists('Jodit\exif_imagetype')) {
				function exif_imagetype($filename) {
					if ((list(, , $type) = getimagesize($filename)) !== false) {
						return $type;
					}

					return false;
				}
			}

			return in_array(exif_imagetype($this->getPath()), [IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG, IMAGETYPE_BMP]);
		} catch (\Exception $e) {
			return false;
		}
	}
public function isImage() {
		try {
			if (!function_exists('exif_imagetype') && !function_exists('Jodit\exif_imagetype')) {
				function exif_imagetype($filename) {
					if ((list(, , $type) = getimagesize($filename)) !== false) {
						return $type;
					}

					return false;
				}
			}

			return in_array(exif_imagetype($this->getPath()), [IMAGETYPE_GIF, IMAGETYPE_JPEG, IMAGETYPE_PNG, IMAGETYPE_BMP]);
		} catch (\Exception $e) {
			return false;
		}
	}
public function isImage ( ) { try { if ( ! function_exists ( 'exif_imagetype' ) && ! function_exists ( 'Jodit\exif_imagetype' ) ) { function exif_imagetype ( $ filename ) { if ( ( list ( , , $ type ) = getimagesize ( $ filename ) ) !== false ) { return $ type ; } return false ; } } return in_array ( exif_imagetype ( $ this -> getPath ( ) ) , [ IMAGETYPE_GIF , IMAGETYPE_JPEG , IMAGETYPE_PNG , IMAGETYPE_BMP ] ) ; } catch ( \ Exception $ e ) { return false ; } }
Check by mimetype what file is image

@return bool
Check by mimetype what file is image