I think ```if (params.key)``` will check properly.