結果 : check if function exists in object javascript