結果 : how to check function exists or not in javascript