結果 : javascript call function only if it exists