public static function path($plugin, $file = null, $check = false)
    {
        $plugin = parent::path($plugin);

        if (!$file) {
            return $plugin;
        }

        $path = $plugin . $file;

        if ($check && !is_readable($path)) {
            throw new MissingPluginException(__d('me_tools', 'File or directory `{0}` does not exist', rtr($path)));
        }

        return $path;
    }