結果 : typescript call method if not null