結果 : javascript call function only if defined