$value) { if (strpos($key, $searchText) !== false && isset($value["file"])) { $fileValue = $value["file"]; break; } } if ($fileValue !== null) { $prefixedPath = '/plugins/dynamix.my.servers/unraid-components/'; echo ''; } else { echo ''; }