関数を呼ぶ前にfunction_existsでチェックするとかはダメかな?