結果 : typescript check if function exists