結果 : javascript check if method exists