if application "Safari" visible is false then (AppleScript)
Try this,,,

tell application "System Events"
    if visible of process "Safari" is false then
        tell application "Safari" to activate
    end if
end tell


That will only work if it's running, but hidden, btw. If you simply want the script to 'fetch' Safari, just activate it without any check