Document.QuerySelector NULL CHECK

var selection = document.querySelector('.selector') !== null;
Borma