implemented .is() method