protected static function getExistingPath($path, $webDir, $fallbackPath = null)
    {
        return file_exists($webDir.'/'.$path)
            ? realpath($webDir.'/'.$path)
            : (null !== $fallbackPath ? $fallbackPath : $path);
    }
protected static function getExistingPath($path, $webDir, $fallbackPath = null)
    {
        return file_exists($webDir.'/'.$path)
            ? realpath($webDir.'/'.$path)
            : (null !== $fallbackPath ? $fallbackPath : $path);
    }
protected static function getExistingPath ( $ path , $ webDir , $ fallbackPath = null ) { return file_exists ( $ webDir . '/' . $ path ) ? realpath ( $ webDir . '/' . $ path ) : ( null !== $ fallbackPath ? $ fallbackPath : $ path ) ; }
Get the the absolute path if file exists.

@param string      $path         The path
@param string      $webDir       The absolute web directory
@param null|string $fallbackPath The fallback if path is not in locale file system

@return string
Get the the absolute path if file exists .