結果 : typescript execute function if not null