Check on element existence

There is a mistake - if the element isn't created.