結果 : javascript call method if object not null