check path only if value  is present