How to check if a function is already defined ?
Like so:
if (typeof myFunc != 'undefined') { // Assign myFunc }
Don't just test it against undefined, which is not a constant and can be reassigned.
undefined