結果 : javascript check if method exists in class