Insuring (idiot-proofing) a macro by using "if application is running"

for example:

Is Chrome for example, running ?.kmmacros (2.9 KB)

tell application "System Events"
	count of (application processes where name = "Google Chrome")
end tell