add method for detecting if element is select2