if(typeof (nomeFunzione)!='function') alert('non esiste')
else alert('esiste')