How to check if a function is already defined ?
if (myFunc !== undefined) { // myFunc is defined foo(); }
or
if (myFunc === undefined) { // myFunc is not defined qux(); }