結果 : javascript call function if variable is defined