結果 : javascript check method exists