public function app($path = '', $checkIfExists = false)
    {
        $appDir = getcwd();
        if ($checkIfExists) {
            return realpath($appDir . DS . $path);
        }
        if (empty($path)) {
            return $appDir;
        }
        return $appDir . DS . $this->normalizePath($path);
    }