結果 : javascript check if method exists on object