public function validate($path, array $mimeTypes = [])
    {
        if (empty($mimeTypes)) {
            $mimeTypes = $this->mimeTypes;
        }

        return in_array(self::getType($path), $mimeTypes);
    }