Basic JavaScript tips

How to check if a Javascript function exists