check is cookie can be created